package com.itheima.neibulei3;

public class Demo01 {
    public static void main(String[] args) {
        System.out.println(Outer.i);
        Outer.sing();
        Outer.Inner inner = new Outer.Inner();
       /* System.out.println(inner.j);
        inner.dance();*/
        System.out.println(Outer.Inner.j);
        Outer.Inner.dance();


    }

}

class Outer {
    static int i = 10;

    public static void sing() {
        System.out.println("唱");
    }

    static  class Inner {
        static  int j = 10;//内部类的成员变量 想要静态  首先内部类得静态

        public static void dance() {
            System.out.println("跳");
        }
    }
}
